import {useHomeStore} from '@/stores/index'

export default {
    // el:绑定的元素
    // binding:绑定的数据
    // vnode:虚拟节点
    mounted(el, binding, vnode, oldVnode){
        const { value } = binding
        const store = useHomeStore()
        store.hasPermission(value).then(rsep=>{
            console.log(rsep)
            if(!rsep){
                el.remove()
            }
        })
    }
}